<?php
/**
 * Created by PhpStorm.
 * User: thanatos
 * Date: 2017/9/12
 * Time: 下午2:34
 */

namespace backend\components;


use yii\filters\AccessControl;
use yii\web\Controller;

class BaseController extends Controller
{
    
    public function behaviors()
    {
        return [
            'access' => [
                'class' => AccessControl::className(),
                'rules' => [
                    [
                        'allow' => true,
                        'actions' => ['login', 'signup'],
                        'roles' => ['?'],
                    ],
                    [
                        'allow' => true,
                        'roles' => ['@'],
                    ],
                ],
            ],
        ];
    }
    
}